package com.itheima.test;

import java.util.Scanner;

public class test4 {
    public static void main(String[] args) {
        //判断两只老虎体重是否相同
        //键盘录入两只老虎的体重
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入第一只老虎的体重");
        int weight1 = sc.nextInt();
        System.out.println("请输入第二只老虎的体重");
        int weight2 = sc.nextInt();
        //三元运算符
        String result = weight1==weight2?"体重相同":"体重不同";
        System.out.println(result);
    }
}
